package com.boscloud.controller;


import com.boscloud.pojo.AppVersion;
import com.boscloud.service.UserService;
import jakarta.servlet.http.HttpServletResponse;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.*;
import java.net.URLEncoder;

@Slf4j
@RestController
@CrossOrigin //允许跨域
public class DownloadApk {
    @Autowired
    private UserService userservice;

    @GetMapping("/getVersion")
    public AppVersion getVersion(){
        return  userservice.getVersion();
    }


    //测试修改上传
}